#define _CRT_SECURE_NO_WARNINGS

#include"Heap.h"

void TestHeap()
{
    HP hp;
    HeapInit(&hp);
    HeapPush(&hp, 1);
    HeapPush(&hp, 2);
    HeapPush(&hp, 3);
    HeapPush(&hp, 4);
    HeapPush(&hp, 5);
    HeapPush(&hp, 6);
    HeapPrint(&hp);

    HPDataType ret = HeapTop(&hp);
    printf("%d\n", ret);

    HeapPop(&hp);
    HeapPrint(&hp);

    HeapDestroy(&hp);
}

int main()
{
    TestHeap();
    return 0;
}